package lab02.test09;

public class Student {
    //属性
    long studentNum;
    int classNum;
    String name;
    String gender;
    int age;

    //无参构造
    public Student() {
    }

    //有参构造
    public Student(long studentNum, int classNum, String name, String gender, int age) {
        this.studentNum = studentNum;
        this.classNum = classNum;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    //行为：方法


    public long getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(long studentNum) {
        this.studentNum = studentNum;
    }

    public int getClassNum() {
        return classNum;
    }

    public void setClassNum(int classNum) {
        this.classNum = classNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return studentNum + "\t" + classNum + "\t" + name + "\t" + gender + "\t" + age;
    }
}
